{
	template:`
	<a-page-header title="流程实例">
		<template #extra>
			<a-button v-if="model.busiStatus=='C'" type="primary" @click="save();">保存</a-button>
			<m-back @click="back(false);">关闭</m-back>
		</template>
		<a-card :hoverable="true" :bodyStyle="{padding:'20px 20px 0'}">
			<a-form class="index-form" :wrapper-col="{span:24}">
				<a-row :gutter="10">
					<a-col :span="24">
						<a-form-item label="业务标题" class="index-form-item">
							<a-input v-model:value="model.title" placeholder="请输入业务标题"/>
						</a-form-item>
					</a-col>
				</a-row>
			</a-form>
		</a-card>
	</a-page-header>
	<div id="flowBusinessTest_flow" style="min-height:15px;margin-top:-15px;">
	</div>
	`,
	props: ['localeZh','param','parentVue'],
	data:function(){
		return {
			model:{startSection:{}},
			backFlag:false,
			flowV3:null
		};
	},
	mounted(){
		this.model=this.param.model;
		if(this.model.oid){
			this.initFlow();
		}
	},
	methods:{
		save:function(){
			this.requestData('action/flow/flowBusinessTest/doSave',
				{model:this.model},
				data=>{
					if(!data.code){
						this.$message.success(data.msg);
						this.model=data.model;
						this.backFlag=true;
						this.initFlow();
					}else{
						this.$message.error(data.msg);
					}
				}
			);
		},
		initFlow:function(){//初始化流程
			if(this.model.oid){
				if(this.flowV3) this.flowV3.unmount();
				this.loadPage("flowBusinessTest_flow",
					"page/base/flow/toFlowInfo.js",
					{business:{oid:this.model.oid,busiService:'flow.service.FlowBusinessTestService'}},
					function(pv,v3){
						this.flowV3=v3;
			        }.bind(this)
		        );
			}
		},
	}
}